GEM_VERSION  = $(shell cat lib/ruby_event_store/outbox/version.rb | grep VERSION | egrep -o '[0-9]+\.[0-9]+\.[0-9]+')
GEM_NAME     = ruby_event_store-outbox

include ../../support/make/install.mk
include ../../support/make/test.mk
include ../../support/make/mutant.mk
include ../../support/make/gem.mk
include ../../support/make/help.mk

docker-build: ## Build docker image
	@docker build \
		--file Dockerfile \
		--build-arg GEM_VERSION=$(GEM_VERSION) \
		--tag railseventstore/outbox:$(GEM_VERSION) \
		.

docker-push: ## Push docker image
	@DOCKER_CLI_EXPERIMENTAL=enabled docker manifest inspect railseventstore/outbox:$(GEM_VERSION) > /dev/null || docker push railseventstore/outbox:$(GEM_VERSION)
